package com.ty.tymusic.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @deprecated 该方法是为了测试接口，现已废弃
 */
@Deprecated
@RestController
@RequestMapping("/hello")
@Api(tags = "测试接口")
@CrossOrigin
public class HelloController {
    /**
     * @deprecated 已废弃
     */
    @GetMapping
    @ApiOperation("测试接口，现已废弃")
    public String hello() {
        return "你好";
    }

}
